<h1>Preinscripción Acádemica</h1>

<h3><?php echo $curso['Course']['name'].' Sección '.$seccion['Section']['section_number']; ?> </h3>

<table>
		<?php if(sizeof($horarios)>0){ ?>
		<?php foreach($horarios as $horario){ ?>
		<tr>
			<td>
				<?php $h = explode(';',$horario['Scheduleoption']['schedule']);
					echo (array_key_exists('0', $h))?$h[0]:$h; ?>
			</td>
			<td>
				<?php echo $this->Form->postLink('Elminar',array('controller' => 'Scheduleoptions','action'=>'delete', $horario['Scheduleoption']['id']) ); ?>
			</td>
		</tr>
		<?php } }?>	
</table>
<?php echo $this->Html->Link('Volver', array('controller' => 'Sections','action' => 'edit', $seccion['Section']['id'], $seccion['Section']['preinscription_process_id'])); ?>
&nbsp;
<?php echo $this->Html->Link('Agregar Horario a la sección', array('controller' => 'Scheduleoptions', 'action' => 'add', $seccion['Section']['id'])); ?>